<?php

namespace maotool\view\template;

use maotool\file\FileUtil;
use maotool\util\HtmlUtil;
use maotool\view\html\Document;

class TemplateLoader
{

    /**
     * 解析器
     * @param $content
     * @param null $params
     * @return string
     */
    public static function parse($content, $params = null)
    {
        $document = new Document();
        $document->loadComponent($content);
        return $document->outerHTML;
    }

}